package cn.ly.security.dao;

import cn.ly.security.entity.DeviceUserArea;
import cn.ly.security.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DeviceUserAreaMapper extends BaseMapper<DeviceUserArea> {
    List<DeviceUserArea> selectAllDeviceUserArea(@Param("first") Integer first, @Param("last")Integer last);
    List<DeviceUserArea> selectAllDeviceUserAreaByName(@Param("first") Integer first, @Param("last")Integer last,@Param("name")String name);
    DeviceUserArea selectDeviceUserAreaById(@Param("id") Integer id);
}